package com.afdor.rws.dtm.recover;

import com.afdor.rws.annotation.extension.SPI;
import com.afdor.rws.dtm.serialize.ObjectSerializer;

/**
 * 分布式事物恢复管理器
 *
 * @author 悭梵
 * @date Created in 2018-10-15 14:20
 */
@SPI("default")
public interface DistributedTransactionRecoverManager {

    /**
     * get scheme.
     *
     * @return scheme
     */
    String getScheme();


    /**
     * set objectSerializer spi.
     *
     * @param objectSerializer {@linkplain ObjectSerializer}
     */
    void setSerializer(ObjectSerializer objectSerializer);
}
